﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendNewPassword.aspx.cs" Inherits="wdss.GUI.SendNewPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Send New Password</title>
    <style type="text/css">
        #form1
        {
            height: 638px;
        }
        .newStyle1
        {
            font-family: "Arial Rounded MT Bold";
            font-size: x-large;
             color: #FFFFFF;
             border: thick double #FFFFFF;
        }
    </style>
</head>
<body background="../images/gray.jpg" scroll="yes">
    <form id="form1" runat="server" class="newStyle1">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
    <br />
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<table align=center><tr><td>
<asp:Label ID="topic" runat =server Text = "SDX On Web" Font-Names= "Arial Rounded MT Bold" Font-Size=XX-Large > </asp:Label>
</td></tr></table><br /><br />
    <table cellspacing = 30 align =center border =2 >
    <tr>
    <td colspan =2 align=center>
    <asp:Label ID="username_lbl" runat =server > </asp:Label>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label runat =server ID = "question_lbl"></asp:Label> 
    </td>
    <td>
    <asp:TextBox runat =server ID="answer_txt"  ></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label runat =server ID = "role_lbl" Text = "Select your Role:"></asp:Label> 
    </td>
    <td>
    <asp:DropDownList runat =server ID = "role_list" DataSourceID="Get_Role_sql" 
            DataTextField="role_name" DataValueField="role_id" ></asp:DropDownList> 
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label runat =server ID = "dept_lbl" Text="Select your Department:"></asp:Label> 
    </td>
    <td>
    <asp:DropDownList runat =server ID = "dept_list" DataSourceID="Get_Dept_sql" 
            DataTextField="dept_name" DataValueField="dept_id" ></asp:DropDownList> 
    </td>
    </tr>
    <tr>
    <td colspan =2 align =right >
    <asp:Button  runat =server ID= "fetch_btn"  Text = "Get New Password" BackColor="#333333" 
            BorderColor="White" BorderStyle="Outset" Font-Bold="True" Font-Size="Medium" 
            ForeColor="White" Height="30px" onclick="fetch_btn_Click"/>
    </td>
    </tr>
    </table>
    
    
    <br />
    <asp:SqlDataSource ID="Get_Role_sql" runat="server" 
        ConnectionString="Data Source=(local)\SQLEXPRESS;Initial Catalog=aspnetdb;Integrated Security=True" 
        ProviderName="System.Data.SqlClient" SelectCommand="sp_GetRoles" 
        SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    <asp:SqlDataSource ID="Get_Dept_sql" runat="server" 
        ConnectionString="Data Source=(local)\SQLEXPRESS;Initial Catalog=aspnetdb;Integrated Security=True" 
        ProviderName="System.Data.SqlClient" SelectCommand="sp_GetDepartments" 
        SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    <br />
    
    
    </form>
</body>
</html>
